package com.eslserver.to;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy = false)
@Table(name = "ESL_IMAGE")
public class Image {
	private Integer imageID;
	private String systemPath;
	private Boolean delete;
	private Date createDate;
	private Date modifyDate;

	public Image() {
	}

	public static Image createImage() {
		Image image = new Image();
		image.setDelete(false);
		return image;
	}

	@Id
	@Column(name = "esl_image_id")
	@GeneratedValue(generator = "increment")
	@GenericGenerator(name = "increment", strategy = "increment")
	public Integer getImageID() {
		return imageID;
	}

	public void setImageID(Integer imageID) {
		this.imageID = imageID;
	}

	@Column(name = "system_path")
	public String getSystemPath() {
		return systemPath;
	}

	public void setSystemPath(String systemPath) {
		this.systemPath = systemPath;
	}

	@Column(name = "create_date")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date")
	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "isDelete")
	public Boolean isDelete() {
		return delete;
	}

	public void setDelete(Boolean deleted) {
		this.delete = deleted;
	}
}
